Update a User’s Roles
{ updateUserRoles }
Adds or deletes the roles assigned to the selected user.
Method
/API3/access/updateUserRoles
- Enterprise Admin
Input Parameters
Name
userRolesData
Object Type
Description
The user-role object contains a list of all roles to add or remove for the specified user.
Output Response
Successful Result Code
200
Response List Type
Description of Response Type
Returns a generic response object with the list of all user's final role IDs. Note that the response is returned as a list of items of this object type.
Notes
Provide the list of roles to add and a list of roles to delete for the specified user.
Code Snippets
Use the Authentication API methods to generate an access 'key' or 'token' for use in code as shown below.
TypeScript
Curl
Java
C#
Python
PHP